﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="FrmComprobanteCheque.aspx.cs" Inherits="UI.Tesoreria.FrmComprobanteCheque" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script language="javascript" type="text/javascript">
        function AbrirVentana(url) {
            window.location(url);
        }
    </script>


    <style type="text/css">

         .styleCOntrolIngreso
        {
            width: 60px;
            height: 26px;
        }
                        
        .styleLabel
        {
            width: 134px;
            height: 26px;
        }
         .style4
        {
            /*background: url(Administration/Images/Grey/captionbckg.gif) repeat-x;*/
        background: #f9f9f9 url('../Imagenes/grey/captionbckg.gif') repeat-x;
            color: #333333;
            text-align: left;
            font-size: 11px;
            font-weight: bold;
            padding-top: 4px;
            padding-left: 4px;
            font-family: tahoma,arial,verdana,sans-serif;
            height: 30px;
        }
        .style2
        {
            height: 25px;
        }
                
         .style42
        {
            height: 25px;
            width: 134px;
        }
        .style48
        {
            /*background: url(Administration/Images/Grey/captionbckg.gif) repeat-x;*/
   /* background: #f9f9f9 url('../Imagenes/grey/captionbckg.gif') repeat-x;*/
        text-align: left;
            padding-top: 4px;
            padding-left: 4px;
            height: 18px;
        }
        .style49
        {
            width: 11px;
            height: 18px;
        }
        .style51
        {
            /*background: url(Administration/Images/Grey/captionbckg.gif) repeat-x;*/
   /* background: #f9f9f9 url('../Imagenes/grey/captionbckg.gif') repeat-x;*/
        color: #333333;
            text-align: left;
           
            font-size: 11px;
            font-weight: bold;
            padding-top: 4px;
            padding-left: 4px;
            font-family: tahoma,arial,verdana,sans-serif;
            height: 18px;
            width: 126px;
        }
                
         .style52
        {
            /*background: url(Administration/Images/Grey/captionbckg.gif) repeat-x;*/
   /* background: #f9f9f9 url('../Imagenes/grey/captionbckg.gif') repeat-x;*/
        color: #333333;
            text-align: left;
            font-size: 11px;
            font-weight: bold;
            padding-top: 4px;
            padding-left: 4px;
            font-family: tahoma,arial,verdana,sans-serif;
            width: 134px;
        }
        .style56
        {
            /*background: url(Administration/Images/Grey/captionbckg.gif) repeat-x;*/
   /* background: #f9f9f9 url('../Imagenes/grey/captionbckg.gif') repeat-x;*/
        color: #333333;
            text-align: left;
            font-size: 11px;
            font-weight: bold;
            padding-top: 4px;
            padding-left: 4px;
            font-family: tahoma,arial,verdana,sans-serif;
            width: 126px;
        }
        .style57
        {
            height: 25px;
            width: 126px;
        }
        .style58
        {
            width: 11px;
        }
        .style59
        {
            /*background: url(Administration/Images/Grey/captionbckg.gif) repeat-x;*/
   /* background: #f9f9f9 url('../Imagenes/grey/captionbckg.gif') repeat-x;*/
    /*color: #333333;*/
        text-align: left; /*line-height: 0px;*/;
            font-size: 11px; /*font-weight: bold;*/ /*padding-top: 4px;
    padding-left: 4px;*/;
            font-family: tahoma,arial,verdana,sans-serif;
            width: 160px;
        }
        .style60
        {
            width: 160px;
        }
        #TextArea1
        {
            width: 310px;
            height: 45px;
        }
        .style78
        {
            width: 3979px;
        }
        .style79
        {
            width: 3px;
        }
                
         </style>

        
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
           

      <asp:UpdatePanel ID="panelActualizar"   UpdateMode="Always" runat="server">
                         <Triggers>

                         
        
        <asp:PostBackTrigger ControlID="btnGuardarCpVenta" />

        

             
    </Triggers>
     <ContentTemplate>
                    <table style="width: 94%;">
                    <tr>
                        <td class="style78">
                            &nbsp;
                            <asp:ImageButton ID="ImageButton5" runat="server" ImageUrl="~/Imagenes/Iconos/new.png"
                                OnClick="ImageButton5_Click" style="width: 48px" />
                        </td>
                        <td class="style79">
                            <asp:ImageButton ID="ImageButton4" runat="server" ImageUrl="~/Imagenes/Iconos/back.png"
                                OnClick="ImageButton4_Click" style="width: 48px" />
                        </td>
                        <td>
                            <asp:ImageButton ID="btnGuardarCpVenta" runat="server" ImageUrl="~/Imagenes/Iconos/accept.png"
                                OnClick="btnGuardarCpVenta_Click" />
                        </td>
                    </tr>
                </table>

                   
      
   
                   

                <table frame="border" style="width: 905px">
                    <tr>
                        <td class="style4" colspan="5">
                            DATOS GENERALES
                        </td>
                    </tr>
                    <tr>
                        <td class="style56">
                            TIPO COMPROBANTE
                        </td>
                        <td class="style59">
                            <asp:DropDownList runat="server" Height="18px" Width="233px" 
                                ID="ComboTipoDocumento" AutoPostBack="True" 
                                onselectedindexchanged="ComboTipoDocumento_SelectedIndexChanged">
                            </asp:DropDownList>
                        </td>
                        <td class="style58">
                            &nbsp;
                        </td>
                        <td class="style52">
                            N° CHEQUE
                        </td>
                        <td class="filaTablaBlanco">
                            <asp:TextBox runat="server" CssClass="textEntry" Height="19px" ID="txtCodigo0" Enabled="False"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style56">
                            <asp:Label runat="server" Text="CLIENTE REFERENCIAL" ID="Label6"></asp:Label>
                        </td>
                        <td class="style59">
                            <asp:CheckBox ID="CheckClienteReferencial" runat="server" AutoPostBack="True" OnCheckedChanged="CheckClienteReferencial_CheckedChanged" />
                        </td>
                        <td class="style58">
                            &nbsp;
                        </td>
                        <td class="style52">
                            FECHA DE DOCUMENTO
                        </td>
                        <td class="filaTablaBlanco">
                            <asp:TextBox ID="txtFechaDocumento" runat="server"></asp:TextBox>
                            <asp:CalendarExtender ID="txtFechaDocumento_CalendarExtender" runat="server" Enabled="True"
                                Format="dd/MM/yyyy" TargetControlID="txtFechaDocumento">
                            </asp:CalendarExtender>
                        </td>
                    </tr>
                    <tr>
                        <td class="style51">
                            <asp:Label runat="server" Text="NOMBRE CLIENTE" ID="Label7"></asp:Label>
                        </td>
                        <td class="style59">
                            <asp:TextBox runat="server" CssClass="textEntry" Height="19px" Width="319px" ID="txtNombreCliente"
                                Enabled="False"></asp:TextBox>
                        </td>
                        <td class="style49">
                            <asp:ImageButton ID="btnBuscarAlumno" runat="server" Height="22px" ImageUrl="~/Imagenes/Iconos/search.png"
                                Width="28px" OnClick="btnBuscarAlumno_Click" />
                        </td>
                        <td class="style52">
                            PERIODO
                        </td>
                        <td class="style48">
                            <asp:DropDownList runat="server" Height="18px" Width="210px" ID="ComboPeriodo">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="style57">
                            &nbsp;</td>
                        <td class="style60">
                            &nbsp;</td>
                        <td class="style58">
                            &nbsp;</td>
                        <td class="style42">
                            &nbsp;</td>
                        <td class="style2">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style57">
                            <asp:Label ID="Label8" runat="server" Text="MONTO A PAGAR"></asp:Label>
                        </td>
                        <td class="style60">
                            <asp:TextBox ID="TxtMontoPagar" runat="server"></asp:TextBox>
                        </td>
                        <td class="style58">
                            &nbsp;</td>
                        <td class="style42">
                            &nbsp;</td>
                        <td class="style2">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style57">
                            &nbsp;</td>
                        <td class="style60">
                            <asp:Label ID="labelErrorCp" runat="server" Font-Bold="True" 
                                Font-Overline="True" Font-Size="Larger" ForeColor="Red"></asp:Label>
                        </td>
                        <td class="style58">
                            &nbsp;
                        </td>
                        <td class="style42">
                            &nbsp;
                        </td>
                        <td class="style2">
                            &nbsp;
                        </td>
                    </tr>
                </table>


                

            </p>






             </ContentTemplate>
            </asp:UpdatePanel>

            <asp:Panel ID="PanelAgregarAlumno" runat="server" Style="text-align: center">
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <Triggers>
                <asp:PostBackTrigger ControlID= "grvAgregaAlumnos" />
            </Triggers>
            <ContentTemplate>
                <table class="BTabla">
                    <tr>
                        <td class="filaTabla" colspan="4">
                            Búsqueda de Alumnos
                        </td>
                    </tr>
                    <tr>
                        <td class="style31">
                        </td>
                        <td class="style29">
                        </td>
                        <td class="style21">
                        </td>
                        <td class="style30">
                        </td>
                    </tr>
                    <tr>
                        <td class="style31">
                            &nbsp;
                        </td>
                        <td class="style29">
							Codigo/ Apellido y Nombre:
                        </td>
                        <td class="style22">
                            <asp:TextBox ID="txtModalCodigo" runat="server" Width="155px"></asp:TextBox>
                        </td>
                        <td style="text-align: left; margin-left: 40px;" class="style30">
                            <asp:Button ID="btnBuscarModal" runat="server" Height="35px" Text="Buscar" Width="90px"
                                OnClick="btnBuscarModal_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style31">
                            &nbsp;
                        </td>
                        <td class="style24" colspan="3">
                            <asp:Label ID="lblMensajeModal" runat="server" Style="color: #FF0000"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        
                        <td class="style31" colspan="4">
                            <asp:GridView ID="grvAgregaAlumnos" runat="server" AllowPaging="True" AutoGenerateColumns="False"
OnSelectedIndexChanged="grvAgregaAlumnos_SelectedIndexChanged" 
                                Width="622px" onpageindexchanging="grvAgregaAlumnos_PageIndexChanging" 
                                PageSize="25">
                                <Columns>
                                    <asp:CommandField SelectText="Agregar" ShowSelectButton="True" />
                                    <asp:BoundField DataField="codigo" HeaderText="Código">
                                        <ItemStyle HorizontalAlign="Center" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="nombres" HeaderText="Nombres">
                                        <ItemStyle HorizontalAlign="Left" />
                                    </asp:BoundField>
                                </Columns>
                            </asp:GridView>
                        </td>

                    </tr>
                </table>

                
            </ContentTemplate>
            </asp:UpdatePanel>

                <asp:Button ID="btnSalir" runat="server" Height="33px" OnClick="btnSalir_Click" Text="Salir"
                    Width="86px" />
            </asp:Panel>

               
            

    <asp:HiddenField ID="HiddenFiel1" runat="server"/>
    <asp:ModalPopupExtender ID="mpeAgregaAlumno" runat="server" PopupControlID="PanelAgregarAlumno"
        TargetControlID="HiddenFiel1" BackgroundCssClass="modalBackground">
    </asp:ModalPopupExtender>


    <asp:HiddenField ID="HiddenField2" runat="server"/>
    <asp:ModalPopupExtender ID="agregarDeuda" runat="server" PopupControlID="PanelDeuda"
        TargetControlID="HiddenField2" BackgroundCssClass="modalBackground">
    </asp:ModalPopupExtender>
     


   <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="panelActualizar" DisplayAfter="0">
        <ProgressTemplate>
            <div style="background-color: Gray; filter: alpha(opacity=60); opacity: 0.60; width: 100%;
                top: 0px; left: 0px; position: fixed; height: 100%;">
            </div>
            <div style="margin: auto; font-family: Trebuchet MS; filter: alpha(opacity=100);
                opacity: 1; font-size: small; vertical-align: middle; top: 45%; position: fixed;
                right: 45%; color: #275721; text-align: center; background-color: White; height: 100px;
                bottom: 296px;">
                <table style="background-color: White; font-family: Sans-Serif; text-align: center;
                    border: solid 1px #275721; color: #275721; width: inherit; height: inherit; padding: 15px;">
                    <tr>
                        <td style="text-align: inherit;">
                            <img src="../Imagenes/Gif/cargando.gif" alt="Loading" />
                        </td>
                        <td style="text-align: inherit;">
                            <span style="font-family: Sans-Serif; font-size: medium; font-weight: bold; font">Cargando...</span>
                        </td>
                    </tr>
                </table>
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>





     

</asp:Content>
